const {override, fixBabelImports, addLessLoader, addDecoratorsLegacy} = require('customize-cra');
module.exports = override(
    addDecoratorsLegacy(),
    fixBabelImports('import', {
        libraryName: 'antd',
        libraryDirectory: 'es',
        style: 'css'
    }),
    fixBabelImports('babel/plugin-proposal-decorators', {
        'legacy': true
    }),
    addLessLoader({
        javascriptEnabled: true,
        modifyVars: {'@primary-color': '#1D57A'},
    }),
);